package com.gome.ocean.server.service;

import java.util.List;
import java.util.Map;

import com.gome.ocean.dao.model.cango.CangoInstances;

/**
 * @author zhangguoqing 2017年2月15日 下午5:19:20
 * @since 5.0.0
 */
public interface ICangoInstancesService {

    public boolean insert(CangoInstances instances);

    public boolean update(CangoInstances instances);

    public boolean deleteById(Long id);

    public boolean deleteByInstanceName(String instanceName);

    public CangoInstances findByName(String instanceName);

    public boolean deleteAll();

    List<CangoInstances> findByCondition(Map<String, Object> map);

    public void batchUpdateState(List<CangoInstances> instanceLists);

    public void saveOrUpdate(CangoInstances instance);
}
